package com.workingpub.commons.domain;

import java.io.Serializable;

/**
 * 领域顶层抽象，定义所有实体主键Id
 * 
 * @author taoping
 *
 * @param <T>
 */
public interface Identifiable<T extends Serializable> extends Serializable {

	/**
	 * Get the primary key value
	 * 
	 * @return
	 */
	T getId();

	/**
	 * Set the primary key value
	 * 
	 * @param id
	 */
	void setId(T id);
}